home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / DOCS / ST_GUIDE.PR / DISK.TXT < prev    next >
Encoding:
Text File  |  1989-12-31  |  9.7 KB  |  175 lines

  1. PRT_LINE x1k1                                  ╔══════╗
  2. ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░║ DISK ║░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  3.                                   ╚══════╝
  4.         Single or Double Side   (0 and 1)
  5.         80 Tracks               (0 to 79)
  6.        ~6250 bytes/track        (Capacity 500,000 or 1,000,000 bytes/disk)
  7.         Speed ~300 rpm
  8.  
  9. ┌────────────────────────────────────────────────────────────────────────┬─────┐
  10. │                          TRACK STRUCTURE                               │ TOS │
  11. ├────────────────┬───────────────────────────────────────────────────────┼─────┤
  12. │ START OF TRACK │ Gap               ~$4E ~$4E ... 32 mini ... ~$4E ~$4E │  60 │
  13. ├────────────────┼───────────────────────────────────────────────────────┼─────┤
  14. │ SECTOR         │ Synchro   $00 $00 ... 8 mini ... $00 $00 ~$A1 $A1 $A1 │  12 │
  15. │                │ Index Address Mark                                $FE │     │
  16. │                │ Track number                                     0-79 │     │
  17. │                │ Side number                                       0-1 │     │
  18. │                │ Sector number                                     1-n │ 1-9 │
  19. │                │ Sector length in bytes                         0: 128 │     │
  20. │                │                                                1: 256 │     │
  21. │                │                                                2: 512 │   2 │
  22. │                │                                                3:1024 │     │
  23. │                │ Cyclic Redundancy Checksum                    $SS $SS │     │
  24. │                │ Gap                        $4E $4E ... 22 ... $4E $4E │     │
  25. │                │ Synchro       $00 $00 ... 12 ... $00 $00 ~$A1 $A1 $A1 │     │
  26. │                │ Data Address Mark                             $FB/$F8 │ $FB │
  27. │                │ Data         $XX $XX ... 128/256/512/1024 ... $XX $XX │ 512 │
  28. │                │ Cyclic Redundancy Checksum                    $SS $SS │     │
  29. │                │ Gap               ~$4E ~$4E ... 24 mini ... ~$4E ~$4E │  40 │
  30. ├────────────────┼───────────────────────────────────────────────────────┼─────┤
  31. │ ANOTHER SECTOR │  etc...                                               │   9 │
  32. ├────────────────┼───────────────────────────────────────────────────────┼─────┤
  33. │ END OF TRACK   │ Gap               ~$4E ~$4E ... 16 mini ... ~$4E ~$4E │ 664 │
  34. └────────────────┴───────────────────────────────────────────────────────┴─────┘
  35.                             ┌────────────────────────┐
  36.                             │ TOS SECTOR ASSIGNMENTS │
  37.                ┌────────────┴───────────┬────────────┴─┬───────────┐
  38.                │        Physical Sector │ Track        │  Single   │
  39.                ├──────────────────────┐ │  ┌───────────┤           │
  40.                │              Cluster │ │  │ Side      │ Side Disk │
  41.                ├──────────────────┐   │ │  │ ┌─────────┼───────────┤
  42.                │   Logical Sector │   │ │  │ │ Track   │  Double   │
  43.                ├─────────────┐    │   │ │  │ │  ┌──────┤           │
  44.                │ Contents    │    │   │ │  │ │  │ Side │ Side Disk │
  45.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┬────┴───────────┘
  46.                │ Boot sector │   0│  -│1│ 0│0│ 0│0│
  47.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  48.                │ FAT 1       │   1│  -│2│ 0│0│ 0│0│
  49.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  50.                │ FAT 1       │   2│  -│3│ 0│0│ 0│0│
  51.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  52.                │ FAT 1       │   3│  -│4│ 0│0│ 0│0│
  53.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  54.                │ FAT 1       │   4│  -│5│ 0│0│ 0│0│
  55.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  56.                │ FAT 1       │   5│  -│6│ 0│0│ 0│0│
  57.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  58.                │ FAT 2       │   6│  -│7│ 0│0│ 0│0│
  59.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  60.                │ FAT 2       │   7│  -│8│ 0│0│ 0│0│
  61.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  62.                │ FAT 2       │   8│  -│9│ 0│0│ 0│0│
  63.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  64.                │ FAT 2       │   9│  -│1│ 1│0│ 0│1│
  65.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  66.                │ FAT 2       │  10│  -│2│ 1│0│ 0│1│
  67.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  68.                │ Directory   │  11│  -│3│ 1│0│ 0│1│
  69.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  70.                │ Directory   │  12│  -│4│ 1│0│ 0│1│
  71.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  72.                │ Directory   │  13│  -│5│ 1│0│ 0│1│
  73.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  74.                │ Directory   │  14│  -│6│ 1│0│ 0│1│
  75.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  76.                │ Directory   │  15│  -│7│ 1│0│ 0│1│
  77.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  78.                │ Directory   │  16│  -│8│ 1│0│ 0│1│
  79.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  80.                │ Directory   │  17│  -│9│ 1│0│ 0│1│
  81.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  82.                │ Data        │  18│  2│1│ 2│0│ 1│0│
  83.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  84.                │ Data        │  19│  2│2│ 2│0│ 1│0│
  85.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  86.                │ Data        │  20│  3│3│ 2│0│ 1│0│
  87.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  88.                │ Data        │  21│  3│4│ 2│0│ 1│0│
  89.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  90.                │ Data        │  22│  4│5│ 2│0│ 1│0│
  91.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  92.                │ Data        │  23│  4│6│ 2│0│ 1│0│
  93.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  94.                │ Data        │  24│  5│7│ 2│0│ 1│0│
  95.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  96.                │ Data        │  25│  5│8│ 2│0│ 1│0│
  97.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  98.                │ Data        │  26│  6│9│ 2│0│ 1│0│
  99.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  100.                │ Data        │  27│  6│1│ 3│0│ 1│1│
  101.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  102.                │ Data        │  28│  7│2│ 3│0│ 1│1│
  103.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  104.                │ Data        │  29│  7│3│ 3│0│ 1│1│
  105.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  106.                │ Data        │....│...│.│..│.│..│.│
  107.                ├─────────────┼────┼───┼─┼──┼─┼──┼─┤
  108.                │ Data        │ 719│352│9│79│0│39│1│
  109.                │ Data        │1439│712│9│  │ │79│1│
  110.                └─────────────┴────┴───┴─┴──┴─┴──┴─┘
  111.                            ┌─────────────┐
  112.                            │ BOOT SECTOR │
  113. ───────────────────────────┴─────────────┴──────────────────────────────────────
  114.  Byte#          Designation
  115. -------         --------------------------------------
  116.     0-1         0 or BRA.S address in this boot sector
  117.     2-7         Free text of 6 bytes
  118.    8-10         Disk serial number on 24 bits
  119.   11-12         #Bytes   per  sector   =     512 |                    (Low-High)
  120.      13         #Sectors per cluster   =       2 |
  121.   14-15         #Reserved sectors      =       1 |                    (Low-High)
  122.      16         #File Allocation Table =       2 |
  123.   17-18         #Elements in directory =     112 |  BIOS              (Low-High)
  124.   19-20         #Sectors               =720/1440 |  PARAMETER         (Low-High)
  125.      21         Media descriptor       = $F8/$F9 |  BLOCK
  126.   22-23         #Sectors per FAT       =       5 |                    (Low-High)
  127.   24-25         #Sectors per track     =       9 |                    (Low-High)
  128.   26-27         #Sides                 =     1/2 |                    (Low-High)
  129.   28-29         #Hidden sectors        =       0 |                    (Low-High)
  130.  30-509         -
  131. 510-511         2 Bytes for adjust checksum of 256 words of bootsector
  132.                 to reach $1234 for executable bootsector
  133.                       ┌───────────────────────┐
  134.                       │ FILE ALLOCATION TABLE │
  135. ──────────────────────┴───────────────────────┴─────────────────────────────────
  136.         12 bits (3 nibbles) for each cluster with this code:
  137.      $000:Free cluster
  138.      $FF7:Bad  cluster
  139.      $HML:Next cluster              (H:High nibble M:Middle nibble L:Low nibble)
  140.      $FFF:End  cluster
  141.  
  142. Logical:    -       -  Cl.2    Cl.3    Cl.4    Cl.5    Cl.6    Cl.7    ...
  143.          $FF7    $FFF  H2M2L2  H3M3L3  H4M4L4  H5M5L5  H6M6L6  H7M7L7
  144.  
  145. Physical: $F7 $FF $FF  M2L2 L3H2 H3M3  M4L4 L5H4 H5M5  M6L6 L7H6 H7M7  ...
  146.                            ┌───────────┐
  147.                            │ DIRECTORY │
  148. ───────────────────────────┴───────────┴────────────────────────────────────────
  149. There are 112 entries of 32 bytes each.
  150.  
  151.  byte#
  152.    0-7  Name                                         (   0:not used            )
  153.                                                      ("."0:root directory      )
  154.                                                      (". ":current subdirectory)
  155.                                                      ("..":parent  subdirectory)
  156.                                                      ( $E5:erased              )
  157.   8-10  Extension
  158.     11  Type           b5=archive bit
  159.                        b4=subdirectory
  160.                        b3=volume label
  161.                        b2=system file
  162.                        b1=hidden file
  163.                        b0=read only file
  164.  12-21   -
  165.  22-23  Hour      b15-b11=hours
  166.                    b10-b5=minuts
  167.                     b4-b0=seconds
  168.  
  169.  24-25  Date       b15-b9=year-1980
  170.                     b8-b5=month
  171.                     b4-b0=day
  172.  
  173.  26-27  Starting cluster                                              (Low-High)
  174.  28-31  Length                                              (Low-Midl-Midh-High)
  175.